import unittest
from htmltestreport import HTMLTestReport
from config import BASE_DIR
from common.init_log import init_log_config

if __name__ == '__main__':
    init_log_config(BASE_DIR + '/log/irhm.log')
    suite = unittest.defaultTestLoader.discover(BASE_DIR + '/scripts', 'test*')
    resport = HTMLTestReport(BASE_DIR + '/resport/resport.html', title='测试报告', description='测试报告')
    resport.run(suite)
